From: Dmitry Torokhov Date: Tue, 29 Sep 2015 23:28:52 +0000 (-0700) Subject: Merge tag 'v4.3-rc3' into next X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~1098^2~183 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=8f697e574012cc73b6b0dcbf30d88a3a0f43b78f;p=linux-4.9.git Merge tag 'v4.3-rc3' into next Merge with Linux 4.3-rc3 to bring in MFD DA9062 changes to merge DA9062 OnKey driver. --- 8f697e574012cc73b6b0dcbf30d88a3a0f43b78f diff --cc drivers/input/joystick/turbografx.c index 5f7382af70c9,891797ad76bc..01e8ea92b9ad --- a/drivers/input/joystick/turbografx.c +++ b/drivers/input/joystick/turbografx.c @@@ -205,8 -196,9 +205,8 @@@ static void tgfx_attach(struct parport if (n_buttons[i] < 1) continue; - if (n_buttons[i] > 6) { + if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); - err = -EINVAL; goto err_unreg_devs; }